<template>
  <view>
    <FollowList :listArr="ListData" />
  </view>
</template>

<script>
import FollowList from "@/components/follow/followList";
import { mapState } from "vuex";
import { getUserInfoUrl } from "@/api/user.js";
export default {
  data() {
    return {
      ListData: [],
    };
  },
  components: {
    FollowList,
  },
  onShow() {
    this.getUserInfoFn();
  },
  computed: {
    ...mapState("user", ["userInfo"]),
  },
  methods: {
    getUserInfoFn() {
      getUserInfoUrl(this.userInfo.loginname).then((res) => {
        this.ListData = res.data.recent_topics;
      });
    },
  },
};
</script>

<style lang="scss" scoped>
</style>